﻿/*  ----------------------------------------------------------------------------
 *  Project Intercept
 *  ----------------------------------------------------------------------------
 *  System.Common
 *  ----------------------------------------------------------------------------
 *  File:        frmMain.cs
 *  Authors:     Dremation
 *  ----------------------------------------------------------------------------
 *  GNU General Public License version 2 (GPLv2)
 */

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using System.Common;

namespace SystemCommonTester
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
            //MessageBox.Show(Folders.GetSpecialFolderPath(Folders.CSIDL.CSIDL_CDBURN_AREA));
            label8.Text = "UsersProgramsPath: " + Folders.UsersProgramsPath;
            label9.Text = "UsersStartMenuPath: "+Folders.UsersStartMenuPath;
            label10.Text = "UsersDesktopPath: "+Folders.UsersDesktopPath;
            label11.Text = "AllUsersProgramsPath: "+Folders.AllUsersProgramsPath;
            label12.Text = "AllUsersStartMenuPath: "+Folders.AllUsersStartMenuPath;
            label13.Text = "AllUsersDesktopPath: "+Folders.AllUsersDesktopPath;
        }

        private void txtSample_TextChanged(object sender, EventArgs e)
        {
            label1.Text = "IsAlhpa: " + Strings.IsAlpha(txtSample.Text).ToString();
            label2.Text = "IsNumber: " + Strings.IsNumber(txtSample.Text).ToString();
            label3.Text = "IsInteger: " + Strings.IsInteger(txtSample.Text).ToString();
            label4.Text = "IsWholeNumber: " + Strings.IsWholeNumber(txtSample.Text).ToString();
            label5.Text = "IsPositiveNUmber: " + Strings.IsPositiveNumber(txtSample.Text).ToString();
            label6.Text = "IsNaturalNumber: " + Strings.IsNaturalNumber(txtSample.Text).ToString();
            label7.Text = "IsAlphaNumeric: " + Strings.IsAlphaNumeric(txtSample.Text).ToString();
        }
    }
}
